import { IconProp } from '@fortawesome/fontawesome-svg-core'
import { ChangeEvent, InputHTMLAttributes, ReactElement } from 'react'

type InputSize = 'lg' | 'sm'

export interface InputProps
	extends Omit<InputHTMLAttributes<HTMLElement>, 'size'> {
	size?: InputSize
	disabled?: boolean
	icon?: IconProp
	prepend?: string | ReactElement
	append?: string | ReactElement
	onChange?: (e: ChangeEvent<HTMLInputElement>) => void
}
